<script>
    $(function(){   
       

        <?PHP 
            if($this->session->flashdata('update-notif') != null)
            {
        ?>
                showUpdateNotification();
        <?PHP
            }
            else if($this->session->flashdata('danger-notif') != null)
            {       
        ?>
                showDangerNotification();
        <?PHP
            }
        ?>
    });
</script>

<div class="col-md-12">
    <div class="alert alert-info update-notif hide">
        <strong>Success!</strong> You have to change the data.
    </div>
    <div class="alert alert-danger danger-notif hide">
        <strong>Error!</strong> Your recent password is wrong.
    </div>
</div>
<div class="col-md-6">
    <!-- BEGIN SAMPLE FORM PORTLET-->
    <div class="portlet box green ">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-users"></i> My Profile
            </div>
            <div class="tools">
                <a href="" class="collapse">
                </a>
                <a href="#portlet-config" data-toggle="modal" class="config">
                </a>
                <a href="" class="reload">
                </a>
                <a href="" class="remove">
                </a>
            </div>
        </div>
        <div class="portlet-body form">
            <form class="form-horizontal" role="form" action="<?php echo base_url() ?>administrator/profile/update_profile" method="post">
                <div class="form-body">
                     <div class="form-group">
                        <label class="col-md-3 control-label">Full Name</label>
                        <div class="col-md-9">
                            <div class="input-inline input-large">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                    <i class="fa fa-user-md"></i>
                                    </span>
                                    <input type="text" class="form-control" name="fullname" id="fullname" value="<?PHP echo $row->fullname ?>" placeholder="Type your full name..">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">E-mail</label>
                        <div class="col-md-9">
                            <div class="input-inline input-large">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                    <i class="fa fa-user-md"></i>
                                    </span>
                                    <input type="email" class="form-control" name="email" id="email" value="<?PHP echo $row->email ?>" placeholder="Type your e-mail..">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Phone</label>
                        <div class="col-md-9">
                            <div class="input-inline input-large">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                    <i class="fa fa-user-md"></i>
                                    </span>
                                    <input type="text" class="form-control" name="phone" id="phone" value="<?PHP echo $row->phone ?>" placeholder="Type your phone number..">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-offset-3 col-md-9">
                                <button type="submit" class="btn green">Save Changes</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- END SAMPLE FORM PORTLET-->
</div>
<div class="col-md-6 ">
    <div class="portlet box red ">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-unlock"></i> Login Account
            </div>
            <div class="tools">
                <a href="" class="collapse">
                </a>
                <a href="#portlet-config" data-toggle="modal" class="config">
                </a>
                <a href="" class="reload">
                </a>
                <a href="" class="remove">
                </a>
            </div>
        </div>
        <div class="portlet-body form">
            <form class="form-horizontal" role="form" action="<?php echo base_url() ?>administrator/profile/change_account" method="post">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">New Password</label>
                        <div class="col-md-9">
                            <div class="input-inline input-large">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                    <i class="fa fa-user-md"></i>
                                    </span>
                                    <input type="password" class="form-control" name="new-password" id="new-password" placeholder="Type your new password..">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label">Recent Password</label>
                        <div class="col-md-9">
                            <div class="input-inline input-large">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                    <i class="fa fa-user-md"></i>
                                    </span>
                                    <input type="password" class="form-control" name="old-password" id="old-password" placeholder="Type your recent password..">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-offset-3 col-md-9">
                                <button type="submit" class="btn green">Save Changes</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- END SAMPLE FORM PORTLET-->
</div>